package com.rose.doorto.footbathdoor.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.rose.doorto.footbathdoor.mapper.UserMapper;
import com.rose.doorto.footbathdoor.pojo.User;
import com.rose.doorto.footbathdoor.vo.LoginVo;
import com.rose.doorto.footbathdoor.vo.RegVo;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * <p>
 * 用户信息表 服务类
 * </p>
 *
 * @author lqc
 * @since 2024-07-08
 */
public interface IUserService extends IService<User> {

    /**
     * 登录
     * @param loginVo
     * @return
     */
    User login(LoginVo loginVo);

    /**
     * 注册
     * @param regVo
     * @return
     */
    int regist(RegVo regVo);

    /**
     * 根据手机号查询,判断该用户是否存在
     * @param mobile
     */
    User getMobile(String mobile);
}
